# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libxaw
pkgver=1.0.14
pkgrel=0
pkgdesc="X Athena Widget Set"
url="https://www.x.org"
arch="all"
license="MIT"
makedepends="libxmu-dev libxpm-dev libxext-dev libx11-dev util-macros xorgproto"
subpackages="$pkgname-dev $pkgname-doc"
source="https://www.x.org/releases/individual/lib/libXaw-$pkgver.tar.bz2"

builddir="$srcdir"/libXaw-$pkgver
build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var \
		--disable-static \
		--disable-xaw6
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="29d1c151369523ae6cb418e636b0b7b39ccccc35462a0b394dbeb46d5b6d780badd2eb872a55d9fbba1ee1af034e76c0463f40f8d8a7be2c336d08b3b1bf81d4  libXaw-1.0.14.tar.bz2"
